package base

type Api struct {
	Methods  []Method
	Models   []Model
	BasePath string
	Title    string
}

type Method struct {
	HttpMethod  string
	Path        string
	Summary     string
	Description string
	Parameters  []Parameter
	Returns     []ReturnParameter
	Consumes    []string
	Produces    []string
}

type Parameter struct {
	Name        string
	In          string
	Description string
	Required    bool
	Type        string
	IsArray     bool
	Default     any
}

type ReturnParameter struct {
	Code        string
	Name        string
	Description string
	IsArray     bool
	Type        string
}

type Model struct {
	Properties  []Property
	Name        string
	Type        string
	Description string
}
type Property struct {
	Name        string
	Type        string
	IsArray     bool
	Description string
	Example     any
}
